Skip to content
This repository has been archived by the owner on Jul 23, 2024. It is now read-only.

TxTypes for web3.js Ext #507

Merged
merged 32 commits into from
Oct 6, 2023
Merged

TxTypes for web3.js Ext #507

merged 32 commits into from
Oct 6, 2023

Conversation

nohkwak
Copy link
Member

@nohkwak nohkwak commented Sep 14, 2023

  • From ethers.js EXT, TxType Examples for Basic, FeeDelegation and PartialFeeDelegation are ported, tested, and succeeded.
    (The Partial FeeDelegation part was completed more easily than I expected, so it was added.)

@nohkwak nohkwak changed the title Basic TxTypes for web3.js Ext TxTypes for web3.js Ext Sep 14, 2023
Copy link
Contributor

@blukat29 blukat29 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If you haven't modified any code in FeeDel & PartialFeeDel examples, then remove those files from this PR for clarity.

Comment on lines 126 to 127
// @ts-ignore
this.key = txData.key;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Define 'key' in KlaytnTxData type at L10, then remove ts-ignore.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes I did a450199


// A readonly CoreKlaytnTx object
this.klaytnTxData = KlaytnTxFactory.fromObject({
let initTxData = {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Name it klaytnTxObject

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks 854b25b

key: this.key,
};

if ( txData.type == 0x28 ) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Use the TxType enum please

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good, I checked 076027b

@nohkwak nohkwak requested a review from blukat29 October 6, 2023 06:28
@nohkwak nohkwak merged commit b6ad0e5 into klaytn:dev Oct 6, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants